﻿package com.edward.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
public class Cargo {

	private int id;
	
	private String code;
	
	private String name;
	
	private String specs;
	
	private String unit;
	
	private String origin;
	
	private double price;
	
	private String location;
	
	private String place;
	
	private int count;
	
	private String sign;
	
	private int usable;
	
	private int maximum;
	
	private int minimum;
	
	private int secure;
	
	

	public Cargo() {
	}

	public Cargo(Cargo c) {
		super();
		this.id = c.getId();
		this.code = c.getCode();
		this.name = c.getName();
		this.specs = c.getSpecs();
		this.unit = c.getUnit();
		this.origin = c.getOrigin();
		this.price = c.getPrice();
		this.location = c.getLocation();
		this.place = c.getPlace();
		this.count = c.getCount();
		this.sign = c.getSign();
		this.usable = c.getUsable();
		this.maximum = c.getMaximum();
		this.minimum = c.getMinimum();
		this.secure = c.getSecure();
	}

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSpecs() {
		return specs;
	}

	public void setSpecs(String specs) {
		this.specs = specs;
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public int getUsable() {
		return usable;
	}

	public void setUsable(int usable) {
		this.usable = usable;
	}

	public int getMaximum() {
		return maximum;
	}

	public void setMaximum(int maximum) {
		this.maximum = maximum;
	}

	public int getMinimum() {
		return minimum;
	}

	public void setMinimum(int minimum) {
		this.minimum = minimum;
	}

	public int getSecure() {
		return secure;
	}

	public void setSecure(int secure) {
		this.secure = secure;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}
	
	
	
	
	

	
}
